<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<div align="center">
<ui:composition
	template="../templates/template.xhtml">

	<ui:define name="title">
	 	General Case Details Page
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="../header.xhtml" />
	</ui:define>
	<ui:define name="menu">
		<div align="center">	 
	 	<h:form id="mennuForm" >
		 	<br />
		 	<br />
		 	<h:commandButton value="Back" action="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.back}"
		 		 styleClass="buttonClass" immediate="true" required="true" />
			<br/>
			<br/>
			<br/>		
		</h:form>		
		</div>
		<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
		<h:form id="getGAJECaseRecordsWithNoDefendantsForm">
			<table>
			<tr>
					<td><h:commandButton value="Delete GAJE case records missing Defendants" id="deleteGAJECaseId" 
						
						action="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.deleteGAJECaseRecordsMissingDefendants}" /></td>
				</tr>
			</table>
		</h:form> 
		<br/>





		
	</ui:define>
	<ui:define name="body">
		<h:form id="allCaseRecords">
		
			
			<h:panelGrid columns="1" width="98%" styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="All Uploaded and UnsentAddition case records" />
				</f:facet>
				<h:column>
					<t:dataTable renderedIfEmpty="false"  id="allcases"
						value="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.allCaseRedordsByCaseTypeAndStatusTableList}"
						var="uploadedOrUnsentAdditionCase" styleClass="iCubed" width="98%" 
						rows="10" rowIndexVar="rowNumber"
						preserveSort="true"
						sortColumn="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.caseRecordSorter.sort}"
						sortAscending="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.caseRecordSorter.ascending}"
						preserveDataModel="true">
						
						<h:column>
							<f:facet name="header">
								<h:outputText id="content" value="Content" />
							</f:facet>
							<h:outputLabel
								value="#{rowNumber+1}" />
						</h:column>
						 
						<h:column>
							<f:facet name="header">
								<h:outputText id="uuid" value="Uuid" />
							</f:facet>
							<h:outputText value="#{uploadedOrUnsentAdditionCase.uuid}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="instatiationTime" value="Instantiation Date" />
							</f:facet>
							<h:outputText value="#{uploadedOrUnsentAdditionCase.instantiationDateTime}">
								<f:convertDateTime dateStyle="medium"
									timeZone="America/New_York" type="date" />
							</h:outputText>
						</h:column>
					</t:dataTable>
				</h:column>
				<!-- data scroller for data table   -->
				<h:column>
					<div align="center">
					<t:dataScroller fastStep="5"
						styleClass="scrollerTable" pageCountVar="pageCount"
						pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
						paginatorTableClass="paginator"
						paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
						for="allcases">
						<f:facet name="first">
							<t:graphicImage url="/images/arrow-first.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="last">
							<t:graphicImage url="/images/arrow-last.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="previous">
							<t:graphicImage url="/images/arrow-previous.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="next">
							<t:graphicImage url="/images/arrow-next.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastforward">
							<t:graphicImage url="/images/arrow-ff.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastrewind">
							<t:graphicImage url="/images/arrow-fr.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
					</t:dataScroller> 
					</div>
				</h:column>  
				
			</h:panelGrid>
		</h:form>
		<h:form id="missingDefendants">
		
			
			<h:panelGrid columns="1" width="98%" styleClass="outerTable"
				columnClasses="standardTable_ColumnCentered">
				<f:facet name="header">
					<h:outputText value="Uploaded and UnsentAddition case records missing Defendants" />
				</f:facet>
				<h:column>
					<t:dataTable renderedIfEmpty="false"  id="allCaseRecordsMissingDefendants"
						value="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.allCaseRedordsMissingDefendantsByCaseTypeAndStatusTableList}"
						var="uploadedOrUnsentAdditionCaseMissingDefendants" styleClass="iCubed" width="98%" 
						rows="10" rowIndexVar="rowNumber"
						preserveSort="true"
						sortColumn="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.caseRecordMissingDefendantsSorter.sort}"
						sortAscending="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.caseRecordMissingDefendantsSorter.ascending}"
						preserveDataModel="true">
						
						<h:column>
							<f:facet name="header">
								<h:outputText id="content" value="Content" />
							</f:facet>
							<h:outputLabel
								value="#{rowNumber+1}" />
						</h:column>
						 
						<h:column>
							<f:facet name="header">
								<h:outputText id="uuid" value="Uuid" />
							</f:facet>
							<h:outputText value="#{uploadedOrUnsentAdditionCaseMissingDefendants.uuid}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText id="instatiationTime" value="Instantiation Date" />
							</f:facet>
							<h:outputText value="#{uploadedOrUnsentAdditionCaseMissingDefendants.instantiationDateTime}">
								<f:convertDateTime dateStyle="medium"
									timeZone="America/New_York" type="date" />
							</h:outputText>
						</h:column>
					</t:dataTable>
				</h:column>
				<!-- data scroller for data table   -->
				<h:column>
					<div align="center">
					<t:dataScroller fastStep="5"
						styleClass="scrollerTable" pageCountVar="pageCount"
						pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
						paginatorTableClass="paginator"
						paginatorActiveColumnStyle="font-weight:bold;" immediate="false"
						for="allCaseRecordsMissingDefendants">
						<f:facet name="first">
							<t:graphicImage url="/images/arrow-first.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="last">
							<t:graphicImage url="/images/arrow-last.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="previous">
							<t:graphicImage url="/images/arrow-previous.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="next">
							<t:graphicImage url="/images/arrow-next.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastforward">
							<t:graphicImage url="/images/arrow-ff.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
						<f:facet name="fastrewind">
							<t:graphicImage url="/images/arrow-fr.gif" border="1"
								styleClass="objectList_GraphicImage" />
						</f:facet>
					</t:dataScroller> 
					</div>
				</h:column>  
				
			</h:panelGrid>
		</h:form>
	</ui:define>
	

	
</ui:composition>
</div>
</html>
